package Z005ShuZu;

public class SZ001ChuangJian {
    public static void main(String[] args) {

        int[] a ;

        int[] a1 ;
        a1 = new int[5];

        int[] a3 = new int[5];

        a3[0] = 1;
        a3[1] = 2;
        a3[2] = 3;
        a3[3] = 4;
        a3[4] = 5;

        int[] b = new int[5];
        System.out.println(b.length);
        b[4] = 100;
        b[5] = 101; // 越界

        int[] c = new int[5];
        c[0] = (int)(Math.random() * 100);
        c[1] = (int)(Math.random() * 100);
        c[2] = (int)(Math.random() * 100);
        c[3] = (int)(Math.random() * 100);
        c[4] = (int)(Math.random() * 100);

        System.out.println("数组中的各个随机数是：");
        for (int i = 0 ; i < c.length ; i++){
            System.out.println(c[i]);
        }

        System.out.println("练习找出最小值是？" +
                "");

    }
}
